package com.demo.job.anno.biz;

import com.demo.job.anno.annotation.Job;
import org.springframework.stereotype.Service;

/**
 * @author peter
 * @date 2022/4/11 0:24
 */
@Service
public class MyBiz {

    @Job("emptyMethod")
    public void emptyMethod() {
        System.out.println("method without params");
    }

    @Job("paramMethod")
    public void paramMethod(String name, Integer age) {
        System.out.println("method with param name " + name + ", age: " + age);
    }

}
